<?php defined('IN_CMS') or exit('No permission resources.'); ?><!--header str-->
<?php include template("common","header"); ?>
<!--header end-->
<!--wrap_activity str-->
<div class="wrap" id="wrap">
	<table>
		<tr>
			<td class="item_table_left">
				<?php include template("common","left_menu"); ?>
			</td>
			<td class="item_table_right">
				<div class="wrap_main">
					<?php include template("common","bullet_info"); ?>
					<hr>
					<?php if($crowdfundingType == 1) { ?>
					<div class="my_project_start">
						<a href="/index.php?m=hchmember&c=detail&a=startproject">发起一个项目</a>
					</div>
					<?php } ?>
					<div class="content">
						<?php $n=1;if(is_array($lists)) foreach($lists AS $item) { ?>
						<table>
							<tr>
								<td class="img_content_item">
										<table>
											<tr>
												<td width="100" height="100" rowspan="2">
                                                    <a href="<?php echo $curURL;?>&sub_id=<?php echo $item['id'];?>">
                                                        <img alt="" src="<?php echo $item['img'];?>" height="100" width="100">
                                                    </a>
												</td>
												<td>
													<div class="content_item">
														<p><b class="heiti">
														<a href="<?php echo $curURL;?>&sub_id=<?php echo $item['id'];?>">
															<?php echo $item['title'];?>
														</a>
														</b></p>
														<p>
														<a href="<?php echo $curURL;?>&sub_id=<?php echo $item['id'];?>">
															<?PHP echo mb_substr($item[short_content],0,60,'utf-8');?>...
														</a>
														</p>
														<br style="clear:both">			
													</div>
												</td>
											</tr>
											<tr>
												<td align="right">
													<div class="content_item_time">
                                                        <?php if($item[is_show] && !$item[is_close]) { ?>
                                                        <a href="/index.php?m=hchmember&c=detail&a=close_project&pid=<?php echo $item['id'];?>"><input type="button" value="申请关闭"></a><br/>
                                                        <?php } elseif ($item[is_show] && $item[is_close]) { ?>
                                                        <span style="color:red;">已申请关闭，请等待...</span><br/>
                                                        {/elseif}
                                                        <?php } elseif (!$item[is_show] && $item[is_close]) { ?>
                                                        <span style="color:#808080;">该项目已关闭</span><br/>
                                                        {/elseif}
                                                        <?php } ?>
														<img alt="" src="<?php echo IMG_PATH;?>huachuang/browse_eye.png"/> 浏览<?php echo $item['browse_times'];?>次，发布日期：<?php echo $item['last_updated_time'];?>		
													</div>
												</td>
											</tr>
										</table>
								</td>
							</tr>
							<tr>
								<td>
									<div><img src="<?php echo IMG_PATH;?>huachuang/line.png" width="100%" height="3"></div>
								</td>
							</tr>
						</table>
						<?php $n++;}unset($n); ?>
					</div>
				</div>
				<div id="pages"><?php echo $pages ?></div>
			</td>
		</tr>
	</table>
</div>
<!--wrap end-->
<!--footer str-->
<?php include template("common","footer"); ?>
<!--footer end-->
</body>
</html>